<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
	<s:form name="LoginForm" action="/test/LoginActionTest!login.action">
    This is /test/index.jsp page.
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>
		<table align="center">
			<tr>
				<td>操作员编码:</td>
				<td><s:textfield id="user_id" name="user_id" /></td>
			</tr>
			<tr>
				<td>密码:</td>
				<td><s:password id="passwd" name="passwd" /></td>
			</tr>

			<tr>
				<td colspan="2"><input onClick="submitForm()" type="button"
					value="登录"></td>
			</tr>


		</table>
	</s:form>


	<script type="text/javascript">
		function submitForm() {
			/*if (document.LoginForm.user_id.value == "") {
				alert("操作员编号不能为空。");
				document.LoginForm.user_id.focus();
				return;

			} else if (document.LoginForm.passwd.value == "") {
				alert("密码不能为空!");
				document.LoginForm.passwd.focus();
				return;
			}*/
			document.LoginForm.submit();
		}

	</script>

  </body>
</html>
